import {View, Text, TouchableOpacity} from 'react-native';
import React from 'react';
import NavigationBar from '../../components/NavigationBar.jsx';
import {useNavigation} from '@react-navigation/native';

export default function MyPage() {
  const navigation = useNavigation();

  function handlePress() {
    navigation.navigate('Info');
  }

  return (
    <View>
      <NavigationBar title={'我的'} />

      <TouchableOpacity onPress={handlePress}>
        <Text>MyPage</Text>
      </TouchableOpacity>
    </View>
  );
}
